// 获取token对象
export const getTokenobj = () => {
  return JSON.parse(localStorage.getItem('tokenStr'))
}

// 保存token到本地localstorage
export const setTokenobj = (tokenobj) => {
  localStorage.setItem('tokenStr', JSON.stringify(tokenobj))
}

// 删除token
export const delTokenobj = () => {
  localStorage.removeItem('tokenStr')
}
